package com.atguigu.bean;

import lombok.*;

@Data //自动生成get/set,toString,equals和hashCode等方法
@NoArgsConstructor  //无参构造
@AllArgsConstructor //全参构造
@RequiredArgsConstructor //必填参数的构造器
public class Student {
    @NonNull  //非空
    private String name;
    @NonNull  //非空
    private int score;
    private char gender;
}